

function go(form){
	if($("input[name=gno]").val() == ""){
		showMsg("Error notification. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin vulputate, sapien quis fermentum luctus, libero.");
		return;
	}
	if("update" == $("#flag").val()){
		$("#"+form).attr("action",PC.basePath+"page/samp/updatePagesSample.do");
	}
	$("#"+form).get(0).submit();
}

$(function(){
	$(".close").click(
		function () {
			$(this).parent().fadeTo(400, 0, function () { // Links with the class "close" will close parent
				$(this).slideUp(400);
			});
			return false;
		}
	);
	
})

function showMsg(msg){
	$("#error_message_panel").find("div").html(msg);
	$("#error_message_panel").fadeIn(400);
	
}